x_align: St.Align.START,
y_fill: true });
this.actor._delegate = this;
+ this._dragActorSource = null;
let content = provider.createResultActor(metaInfo, terms);
if (content == null) {
let icon = new IconGrid.BaseIcon(this.metaInfo['name'],
{ createIcon: this.metaInfo['createIcon'] });
content.set_child(icon.actor);
+ this._dragActorSource = icon.icon;
this.actor.label_actor = icon.label;
+ } else {
+ if (content._delegate && content._delegate.getDragActorSource)
+ this._dragActorSource = content._delegate.getDragActorSource();
}
this._content = content;
this.actor.set_child(content);
},
getDragActorSource: function() {
+ if (this._dragActorSource)
+ return this._dragActorSource;
// not exactly right, but alignment problems are hard to notice
return this._content;
},